﻿<Selection:jSLGrid x:Class="jSLApp.Client.Controls.MessageGrid"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Selection="clr-namespace:jSLCore.Client.Presentation.BaseControl.Selection;assembly=jSLCore.Client.Presentation" xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:jBinding="clr-namespace:jSLCore.Client.Presentation.jBinding;assembly=jSLCore.Client.Presentation" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" LoadingRow="row_Loading" ShowDetailsClicked="goto_Details">
    <Selection:jSLGrid.Resources>
        <ResourceDictionary Source="../Resources/UndergroundStyle.xaml"/>
    </Selection:jSLGrid.Resources>
    <Selection:jSLGrid.Columns>        
            <Selection:DataGridGoDetailsColumn Header="От кого" x:Name="fromColumn" Binding="{Binding FromText}"/>
            <Selection:DataGridGoDetailsColumn Header="Кому" x:Name="toColumn" Binding="{Binding ToText}"/>
            <Selection:DataGridGoDetailsColumn Header="Дата">
        	    <Selection:DataGridGoDetailsColumn.Binding>
        		    <jBinding:jBinding Path="CreationDate" ConvertingMode="ToShortDateAndTime" />
        	    </Selection:DataGridGoDetailsColumn.Binding>
            </Selection:DataGridGoDetailsColumn>
    </Selection:jSLGrid.Columns>
</Selection:jSLGrid>
